﻿using Datav.Design.Datas.Pocos;
using Datav.Design.IService;
using Microsoft.AspNetCore.Mvc;
using Microsoft.IdentityModel.Tokens;
using Zdap.Common;

namespace Datav.Web.Api.Controllers
{
    /// <summary>
    /// 账号生成
    /// </summary>
    public class UserController : BaseAllController<ProjectUserModel>
    {
        private IProjectUserService _service;

        /// <summary>
        ///
        /// </summary>
        /// <param name="serviceFactory"></param>
        /// <param name="signingCredentials"></param>
        public UserController(IServiceFactory serviceFactory, SigningCredentials signingCredentials) : base(serviceFactory)
        {
            _service = serviceFactory.Resolve<IProjectUserService>();
        }


        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public async ValueTask<dynamic> Info()
        {
            return new ResponseContext<dynamic>
            {
                Data = new
                {
                    Name = "美人骨",
                    Avatar = "//files.pengxiaotian.com/avatar.jpeg",
                    Role = "1"
                },
                Code = 200
            };
        }
    }
}